package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FlavorMapper {

    /**
     * 新增口味
     * @param flavors
     */
    Integer saveFlavor(List<DishFlavor> flavors);

    /**
     * 批量删除口味
     * @param DishIds
     * @return
     */
    Integer DeleteFlavor(List<Long> DishIds);

    @Select("select * from dish_flavor where dish_id = #{dishId}")
    List<DishFlavor> selectByDishId(String dishId);

}
